home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacWorld 1997 August
/
Macworld (1997-08).dmg
/
Serious Demos
/
Crimson Demo
/
Crimson IDE Demo
/
Crimson IDE Demo.rsrc
/
DATA_1151
< prev
next >
Wrap
Text File
|
1997-06-17
|
1KB
|
47 lines
*ˇ Standard Event Handler*******************************
Do E___EVT__LP_
End
Procedure E___EVT__LP_()
Local ContPtr As Integer
Local ContSz As Integer
Local gotEvent As Byte
Local I As Integer
Local Stat As Integer
Local SleepTime as Integer
Local Obj_id As Integer
Local EventRecord As Structure
Local event_what As Word
Local event_message As Integer
Local event_when As Integer
Local event_where As Integer
Local event_modifiers As Word
Endstruct
ContPtr=Lpeek(GB___GetA5_()-418)
ContSz=_GetPtrSize(ContPtr)/4
SleepTime=Lpeek(&H02F4)/8 ' CaretTime
E___Event__Loop_:
gotEvent=_WaitNextEvent(Word(-1),EventRecord,SleepTime,0)
I=0
E___Inner__Loop_:
Inc I
If I>ContSz
Do C___Usr__Evt_(Integer(gotEvent),Varptr(EventRecord))
Goto E___Event__Loop_
Else
Obj_id=Lpeek(ContPtr+((I-1)*4))
If Obj_id=0
Goto E___Inner__Loop_
Endif
Stat=C___CONT_ONEVT_(Obj_id,Integer(gotEvent),Varptr(EventRecord))
If Stat<>0
Goto E___Event__Loop_
Endif
Endif
Goto E___Inner__Loop_
Return
* End of Standard Event Loop *********************************